#ifndef YCCONTROLSMSGUTILS_H
#define YCCONTROLSMSGUTILS_H
#include <QMessageBox>

namespace yc {
namespace msgutils {

// 显示消息框
QMessageBox::StandardButton
msgBox(QWidget* parent, const QString& title, const QString& text,
       QMessageBox::StandardButtons buttons = QMessageBox::Ok,
       QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
       QMessageBox::Icon icon = QMessageBox::NoIcon);

} // namespace msgutils
} // namespace yc

#endif // YCCONTROLSMSGUTILS_H
